import { Component, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';

@Component({
  selector: 'app-invite',
  templateUrl: './invite.component.html',
  styleUrls: ['./invite.component.scss']
})
export class InviteComponent implements OnInit {

  myControl = new FormControl();
  items = [{
    id: 1,
    name: 'zhangsan'
  }, {
    id: 2,
    name: 'lisi'
  }, {
    id: 3,
    name: 'wangwu'
  }];


  constructor() { }

  ngOnInit() {
  }

  displayUser(user: {id: string; name: string}) {
    return user ? user.name : '';
  }
}
